<div class="row contentBox">
    <app-sidebar-system></app-sidebar-system>
    <div class="contentArea_rightDiv">
        <div class="row txtTitle">
            <!-- <div class="form-group pull-right">
                <span class="pull-left form-span span_left_search">启用状态：</span>
                <select class="form-control select-style" name="status" (change)="search()" [(ngModel)]="status">
                    <option value="">全部</option>
                    <option value="0">启用</option>
                    <option value="-1">禁用</option>
                </select>
            </div> -->

            <input matInput type="text" class="input_style" #queryCriteria="ngModel" name="searchData" placeholder="请输入路径名称检索"
                (input)="changesearch()" (keyup.enter)="changesearch()" [(ngModel)]="searchData" *ngIf="right['systemTemplateTath']['query']"/>
            <button class="btn btn-search btn-blue" style="margin-right: 10px;" (click)="search()" *ngIf="right['systemTemplateTath']['query']" mat-button>查询
            </button>

            <button class="btn btn-blue" data-toggle="modal" mat-button data-target="#templatePathAdd" *ngIf="right['systemTemplateTath']['create']" (click)="initService._init(1)">新增导出路径</button>
            <button class="btn btn-orange" data-toggle="modal" [disabled]="removeTableService?._isEmpty()" *ngIf="right['systemTemplateTath']['batchDelete']" data-target="#templatePathDelete"
                mat-button>删除</button>

            <button class="btn btn-green" [disabled]="removeTableService?._isEmpty()" (click)="_enable()" *ngIf="right['systemTemplateTath']['batchEnable']" mat-button>启用</button>

            <button class="btn btn-orange" [disabled]="removeTableService?._isEmpty()" (click)="_disable()" *ngIf="right['systemTemplateTath']['batchDisable']" mat-button>禁用</button>
        </div>
        <!-- 表格 BEGIN -->
        <app-template-path-table #table></app-template-path-table>
        <!-- 表格 end -->

        <!-- 分页 BEGIN -->
       <app-pagination [getTotalItems]="table.total"
       (isLoadTableFromPagination)="_pagination($event)"
       >
      </app-pagination>
      <!-- 分页 END -->
    </div>
</div>
<!--content  end-->

<!--新增弹窗 BEGIN-->
<app-template-path-add (onSubmit)="table.getExportPathList()"></app-template-path-add>
<!--新增弹窗 END-->

<!-- 删除 BEGIN -->
<app-template-path-delete (delete)="table.getExportPathList()"></app-template-path-delete>
<!-- 删除 BEGIN -->